﻿using COC.Test;
using UnityEngine;
using System.Collections;

namespace COC.Test
{

    public class BackgroundComponent : MonoBehaviour
    {
        GameObject go;
        ThreadPoolTest tpt;
        void Start()
        {
            go = new GameObject();
            go.name = "multithreading";
            go.transform.parent = this.transform;
            tpt=go.AddComponent<ThreadPoolTest>();
        }

        void Update()
        {
            if (tpt != null)
            {

                tpt.stopAll = true;

            }
        }
        void Destroy()
        {
           
        }
    }
}